﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Clients.ascx.cs" Inherits="PASNew.U.Controls.Clients" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script language="JavaScript">
	
	function UploadSuccess(sender, args) {
		var filename = args.get_fileName();
		addStuff(filename, 1);
	}

	function UploadFail(sender, args) {
		var filename = args.get_fileName();
		addStuff(filename, 2);
	}

	function addStuff(filename, success) {
		
		var test;
		var i = document.createElement('label');
		i.innerHTML = filename + '   '

		var ii = document.createElement('img');
		if (success == 1) {
			ii.setAttribute('src', '../../images/correct_icon_v3.jpg');
		}
		else {
			ii.setAttribute('src', '../../images/incorrect_icon_v3.jpg');
		}

		var iii = document.createElement('br');

		var d = document.getElementById('filelist');
		d.appendChild(i);
		d.appendChild(ii);
		d.appendChild(iii);
	}


</script>

<article class="grid_18 box-shadow1">
<div class="box">
<div class="padding">
<h3>Client details</h3>
<div class="wrapper img-indent-bot">
<article>

<div id="clientdetails_nav">
<ul>
<li>
<asp:Button ID="btnNew" runat="server" Text="New" CausesValidation="False" OnClick="btnNew_Click"
ToolTip="Click here to add client" CssClass="button" />
</li>
<li>
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ToolTip="Click here to save client"
CssClass="button" />
</li>
<li>
<asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
ToolTip="Click here to delete client" CssClass="button" />
</li>
</ul>
   
<asp:DropDownList ID="DDClientLoad" runat="server" CssClass="dropdown" AutoPostBack="True"
AppendDataBoundItems="true">
<asp:ListItem Text="Please select client ---" Value="-1"></asp:ListItem>
</asp:DropDownList>


<asp:Label ID="lblSuccess" runat="server" Text="Label" ForeColor="Black" Visible="False" CssClass="fright"></asp:Label>
</div>  
   
  
<div id="container">
<ul class="menu">
<li id="news" class="active">Client Details</li>
<li id="tutorials">Advertisement Information</li>
<li id="links">Notes</li>
<li id="files">Files & Documents</li>
</ul>
<span class="clear"></span>

<div class="content news">
<div class="contentLeft">
<p>
<asp:Label ID="lblCompanyName" runat="server" Text="Company Name" AssociatedControlID="txtBoxCompanyName"></asp:Label><br />
<asp:TextBox ID="txtBoxCompanyName" runat="server" CssClass="textbox"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="CompanyCheck" runat="server" ErrorMessage="Input a company name"
ControlToValidate="txtBoxCompanyName" ForeColor="black" Display="Dynamic"></asp:RequiredFieldValidator>
</p>
<p>
<asp:Label ID="lblContactName" runat="server" Text="Contact Name" AssociatedControlID="txtBoxContactName"></asp:Label><br />
<asp:TextBox ID="txtBoxContactName" runat="server" CssClass="textbox"></asp:TextBox>
</p>
<p>
<asp:Label ID="lblEmail" runat="server" Text="Email Address" AssociatedControlID="txtBoxEmail"></asp:Label><br />
<asp:TextBox ID="txtBoxEmail" runat="server" CssClass="textbox"></asp:TextBox><br />
<asp:RegularExpressionValidator ID="EmailFormatCheck" runat="server" ControlToValidate="txtBoxEmail"
ErrorMessage="Input a valid Email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ForeColor="black" Display="Dynamic"></asp:RegularExpressionValidator>
</p>
<p>
<asp:Label ID="lblCellphone" runat="server" Text="Cellphone Number" AssociatedControlID="txtBoxCellphone"></asp:Label><br />
<asp:TextBox ID="txtBoxCellphone" runat="server" CssClass="textbox"></asp:TextBox>
</p>
<p>
<asp:Label ID="lblLandline" runat="server" Text="Land Line" AssociatedControlID="txtBoxLandline"></asp:Label><br />
<asp:TextBox ID="txtBoxLandline" runat="server" CssClass="textbox"></asp:TextBox>
</p>
<p>
<asp:Label ID="lblPhysical" runat="server" Text="Physical Address" AssociatedControlID="txtBoxPhysical"></asp:Label><br />
<asp:TextBox ID="txtBoxPhysical" runat="server" TextMode="MultiLine" CssClass="textbox"
Rows="4" Columns="22"></asp:TextBox>
</p>
<p>
<asp:Label ID="lblWebsite" runat="server" Text="Website" AssociatedControlID="txtBoxWebsite"></asp:Label><br />
<asp:TextBox ID="txtBoxWebsite" runat="server" CssClass="textbox"></asp:TextBox><br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Input a valid URL"
ControlToValidate="txtBoxWebsite" ForeColor="black" ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"
Display="Dynamic"></asp:RegularExpressionValidator><br />
</p>
</div>
<div class="contentRight">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
</div>
<div class="contentRight">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
</div>
<div class="clear">
</div>
</div>

<div class="content tutorials">

<div class="contentLeft">
<p>
<asp:Label ID="lblChange" runat="server" Text="Please choose a start date"
Visible="true"></asp:Label><br />
<asp:TextBox runat="server" ID="txtStartDate"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtStartDate"></asp:CalendarExtender>
</p>

<p>
<asp:Label ID="lblEndDate" runat="server" Text="Please choose a end date" Visible="true"></asp:Label>
<asp:TextBox runat="server" ID="txtEndDate"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtEndDate"></asp:CalendarExtender>
</p>
<p>


<asp:Label ID="lblAmount" runat="server" AssociatedControlID="txtBoxAmount" 
Text="Please specify the billing amount" Visible="true"></asp:Label>
<br />
<asp:TextBox ID="txtBoxAmount" runat="server" CssClass="textbox" 
Visible="true"></asp:TextBox>
</p>
</div>

<div class="contentRight">
<p>
<strong>Has this client advertised yet?</strong><br /><br />
If so please choose the date on which their advertisement campaig will begin.  Please also specify when it is due to expire 
in order for the system to notify you once you will need to contact the client again.  You also have the option to specify the amount the 
client is paying for their advertisement campaign.
</p>

<p>
If however the client has not yet advertised simply leave the the fields blank.  In this case the client will just be saved as a lead and you can simply 
contact them at another time.
</p>


</div>
<div class="clear"></div>
</div>




<div class="content links">
<p>
<asp:Label ID="Label1" runat="server" Text="Notes" Visible="true" AssociatedControlID="txtBoxNotes"></asp:Label><br />
<asp:TextBox ID="txtBoxNotes" runat="server" TextMode="MultiLine" Width="615px" Height="350px"
CssClass="textbox"></asp:TextBox>
</p>
</div>


<div class="content files">
<br />
<p>
You can use the box below to upload a new file related to this client, simply click in the box or the select file button.  While the file is being uploaded you will notice a spinning cursor 
please wait until the uploading process is complete before attemting to upload another file. If the file upload was successfull you will see the filename with an <img src="../../images/correct_icon_v3.jpg" /> next to it 
however id the file uploading has failed it will display an <img src="../../images/incorrect_icon_v3.jpg" /> next to the file name.
</p>

<div id="filelist">
</div>
<div id="fileupload_container" style="margin-top:5px;">

<asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" ClientIDMode="Predictable"
ThrobberID="imgTrobber"
UploaderStyle="Modern"
ErrorBackColor="Transparent"
UploadingBackColor="Transparent"
CompleteBackColor="Transparent"
Width="280px"
OnClientUploadComplete="UploadSuccess"
OnClientUploadError="UploadFail"
CssClass="fleft"/>

<asp:Image runat="server" ID="imgTrobber" ImageUrl="../../images/prettyPhoto/light_rounded/loader.gif" style="display:none; margin-left: 5px;" CssClass="" />

</div>

<div class="clear"></div>
</div>
</div>
  
      



 
    
       
        
   
    

</article>
</div>
</div>
</div>
</article>



